import { $ } from './library/jquery-module.js';
import Swiper from './library/swiper.js';
// all swiper
$(function() {
    var swiper = new Swiper('.swiper1', {
        pagination: '#swiper-pagination1',
        paginationClickable: true,
        loop: true,
        autoplay: 2500,
        autoplayDisableOnInteraction: false,
        nextButton: '.swiper-button-next',
        prevButton: '.swiper-button-prev',
        effect: 'fade' //动画效果：渐变
    });

    var myswiper = new Swiper('.swiper2', {
        slidesPerView: 5,
        paginationClickable: true,
        spaceBetween: 15,
        nextButton: '.swiper-button-next',
        prevButton: '.swiper-button-prev',
        freeMode: true
    });
});